<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://pada.cs.hua71.com/static/js/jquery.js"></script>
</head>
<body>

<div id="list">
    <a href="javascript:;" class="del">删除</a>
</div>

<div class="">
    <a href="javascript:;" onclick="">添加元素</a>
</div>

<script>
    $('#add').click(function(){
        var str ='<a href="javascript:;" class="del">删除</a>';
        $('#list').append(str);
    });
// 方法1
    $('.del').click(function(){
        $(this).remove();
    });

// 方法2
    /*
    $('#list').delegate('.del' , 'click' , function(){
        $(this).remove();
    })
*/

</script>

</body>
</html>